package com.excel.easyExcel.result.Impl;

import com.excel.easyExcel.result.StatusCode;
import lombok.Getter;

/**
 * 统一响应码
 */
@Getter
public enum ResultCode implements StatusCode {
    /**
     * 请求成功
     */
    SUCCESS(200, "请求成功"),

    /**
     * 请求失败
     */
    FAILED(500, "服务器异常");

    /**
     * 响应码
     */
    private final int code;
    /**
     * 响应信息
     */
    private final String msg;

    ResultCode(int code, String meg) {
        this.code = code;
        this.msg = meg;
    }
}
